<h1>Aoi legs List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Flight</th>
      <th>Origin airport</th>
      <th>Destination airport</th>
      <th>Actual departure time</th>
      <th>Actual arrival time</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($aoi_legs as $aoi_leg): ?>
    <tr>
      <td><a href="<?php echo url_for('aoiLeg/show?id='.$aoi_leg->getId()) ?>"><?php echo $aoi_leg->getId() ?></a></td>
      <td><?php echo $aoi_leg->getFlightId() ?></td>
      <td><?php echo $aoi_leg->getOriginAirport() ?></td>
      <td><?php echo $aoi_leg->getDestinationAirport() ?></td>
      <td><?php echo $aoi_leg->getActualDepartureTime() ?></td>
      <td><?php echo $aoi_leg->getActualArrivalTime() ?></td>
      <td><?php echo $aoi_leg->getCreatedAt() ?></td>
      <td><?php echo $aoi_leg->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('aoiLeg/new') ?>">New</a>
